import { VuexModule, Module, Action, Mutation, getModule } from 'vuex-module-decorators';
import store from '../index';

export interface IUserState {
  name: string;
}

@Module({ dynamic: true, store, name: 'user', namespaced: true })
class User extends VuexModule implements IUserState {
  public name = 'vue';
}
export const UserModule = getModule(User);
